/**
 * @file Name: 3.cpp
 * @author: Fenghuwuyu
 * @version: 1.0
 * @brief:
 * @date: Fri 02 Apr 2021 03:41:23 AM PDT
 */

#include<iostream>
int main()

/// C++ performs all meaningful conversions between the basic types so that they can be mixed freely
// keyword: auto 
// for example, we use auto as:
// auto b = 1
// auto b = abc
// auto b = true
// auto is just a auto-match-typename 
//
//
// x+=y
// ++x
// x-=y
// --x
// x*=y
// x/=y
// x%=y
//
// const: meaning "I promise not to change this value"
// constexpr: meaning "to be evaluated at compile time"
//
// Used as:
// const int dmv = 17;
// int var = 17;
// constexpr double max1 = 1.4 * square(dmv) // OK if square(17) is a cnostant expression
// constexpr double max2 = 1.4 * square(var) // error:var is not a constant expression
// const double max3 = 1.4 * square(var) // OK, may be evaluated at run time
//
bool accept()
{
	std::cout << "Do u want to know what is a real life(y or n)?\n" << std::endl;

	char answer = 0;

	std::cin >> answer;

	switch(answer)
	{
		case 'y':
			return true;
		case 'n':
			return false;
		default:
			std::cout << "I'll take that for a no.\n" << std::endl;
			return false;
	}
}

